package dujiu.luogu.circulation;

import java.util.Scanner;

public class P1035 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int k = scanner.nextInt();
        // 求Sn = 1 + 1/2 + 1/3 +...+1/n;
        boolean loop = true;
        double sum = 0;
        int i = 1;
        while (loop){
            sum += (double) 1 / i;
            if (sum <= k){
                i++;
            }else {
                System.out.println(i);
                loop = false;
            }
        }
        scanner.close();
    }
}
